home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 December / Chip_2003-12_cd2.bin / drivers / Zakladni desky / Intel / v6.4_pro2kxp_only.exe / MakeDisk / Make2KXP.bat
Encoding:
DOS Batch File  |  2002-11-11  |  9.0 KB  |  291 lines

  1. @echo off
  2. cls
  3.  
  4. rem Check available environment space
  5. set env_chk=0123456789abcdef
  6. if %env_chk% == 0123456789abcdef goto preprocess
  7. goto env_bad
  8.  
  9. :preprocess
  10. set env_chk=
  11. if NOT "%_silent%" == "" goto env_ok
  12. set _silent=TRUE
  13. if "%2" == "silent" %0 %1
  14. if "%2" == "SILENT" %0 %1
  15. if "%1" == "silent" %0 %2
  16. if "%1" == "SILENT" %0 %2
  17. set _silent=FALSE
  18.  
  19. :env_ok
  20. rem Check that OS (%1) and destination (%2) are supplied and valid
  21. set dest=
  22. if "%2" == "" set dest=A:
  23. if "%2" == "A:" set dest=A:
  24. if "%2" == "a:" set dest=A:
  25. if "%2" == "A:\" set dest=A:
  26. if "%2" == "a:\" set dest=A:
  27. if "%2" == "B:" set dest=B:
  28. if "%2" == "b:" set dest=B:
  29. if "%2" == "B:\" set dest=B:
  30. if "%2" == "b:\" set dest=B:
  31. if "%dest%" == "" goto setdest
  32. set _mdisk_floppy=TRUE
  33. goto dest_ok
  34.  
  35. :setdest
  36. set dest=%2
  37. set _mdisk_floppy=FALSE
  38. goto dest_ok
  39.  
  40. :dest_ok
  41. if not exist ..\VERFILE.TIC goto wrongdir
  42. if "%1" == "xp32fe" goto valid
  43. if "%1" == "XP32FE" goto valid
  44. if "%1" == "XP32GIG" goto valid
  45. if "%1" == "xp32gig" goto valid
  46. if "%1" == "w2kfe" goto valid
  47. if "%1" == "W2KFE" goto valid
  48. if "%1" == "w2kgig" goto valid
  49. if "%1" == "W2KGIG" goto valid
  50. goto invalid
  51.  
  52. :invalid
  53. echo !!! COMMAND LINE PARAMETERS ARE NOT CORRECT !!!
  54. goto usage
  55.  
  56. :valid
  57. if "%dest%" == "A:" goto floppy
  58. if "%dest%" == "B:" goto floppy
  59. goto nofloppy
  60.  
  61. :nofloppy
  62. set mode=nofloppy
  63. cls
  64. echo The destination you specified (%dest%) does not
  65. echo appear to be a diskette. If you are trying to create a diskette,
  66. echo press Control-C and answer Y. Then enter this command again, being sure
  67. echo enter the drive letter without a trailing backslash (A: or B:).
  68. echo.
  69. echo If you do want the files copied to %dest%,
  70. if "%_silent%" == "FALSE" pause
  71. goto cont_1
  72.  
  73. :floppy
  74. set mode=floppy
  75. cls
  76. if exist %dest%\*.* echo !! THIS DISKETTE DOES NOT APPEAR TO BE FORMATTED !!
  77. echo.
  78. echo Please be sure that the disk in %dest% is 1.44 meg, formatted non-bootable and
  79. echo has no pre-existing files. To format the diskette, press Control-C
  80. echo and answer Y, then enter the command FORMAT %dest%. Otherwise,
  81. if "%_silent%" == "FALSE" pause
  82. goto cont_1
  83.  
  84. :cont_1
  85. if not exist ..\verfile.tic goto wrongdir
  86. if "%1" == "xp32fe" goto XP32_FE
  87. if "%1" == "XP32FE" goto XP32_FE
  88. if "%1" == "XP32GIG" goto XP32_Gig
  89. if "%1" == "xp32gig" goto XP32_Gig
  90. if "%1" == "w2kfe" goto W2K_FE
  91. if "%1" == "W2KFE" goto W2K_FE
  92. if "%1" == "w2kgig" goto W2K_Gig
  93. if "%1" == "W2KGIG" goto W2K_Gig
  94. goto usage
  95.  
  96. :XP32_FE
  97.  
  98. cls
  99. echo.
  100. echo Copying files to %dest%
  101. echo.
  102.  
  103. copy ..\verfile.tic %dest%
  104. if not exist %dest%\verfile.tic goto NOCOPY
  105.  
  106. REM MAKE DIRECTORIES FIRST
  107. md %dest%\PRO100
  108. md %dest%\PRO100\WINXP32
  109. copy /v ..\PRO100\WINXP32\e100b325.cat %dest%\PRO100\WINXP32
  110. copy /v ..\PRO100\WINXP32\e100b325.din %dest%\PRO100\WINXP32
  111. copy /v ..\PRO100\WINXP32\e100b325.inf %dest%\PRO100\WINXP32
  112. copy /v ..\PRO100\WINXP32\e100b325.sys %dest%\PRO100\WINXP32
  113. copy /v ..\PRO100\WINXP32\e100bmsg.dll %dest%\PRO100\WINXP32
  114. copy /v ..\PRO100\WINXP32\intelnic.dll %dest%\PRO100\WINXP32
  115. copy /v ..\PRO100\WINXP32\PROUnstl.exe %dest%\PRO100\WINXP32
  116. echo.
  117. echo Base driver files have been copied to diskette. 
  118. echo Advanced Networking Features must be installed from
  119. echo a CD-ROM drive, or over the network after a connection
  120. echo to your network file service is established.
  121. echo.
  122. if "%_mdisk_floppy%" == "FALSE" goto end
  123. echo PLEASE LABEL YOUR DISKETTE
  124. echo Intel(R) PRO/100 LAN Adapter Configuration and
  125. echo Microsoft Windows XP Drivers (Release # from your CD)
  126. echo.
  127. goto end
  128.  
  129. :W2K_FE
  130.  
  131. cls
  132. echo.
  133. echo Copying files to %dest%
  134. echo.
  135.  
  136. copy ..\verfile.tic %dest%
  137. if not exist %dest%\verfile.tic goto NOCOPY
  138.  
  139. md %dest%\PRO100
  140. md %dest%\PRO100\WIN2K
  141. rem 10/100 specific files (IA 32)
  142. copy /v ..\PRO100\WIN2K\e100bnt5.cat %dest%\PRO100\WIN2K
  143. copy /v ..\PRO100\WIN2K\e100bnt5.din %dest%\PRO100\WIN2K
  144. copy /v ..\PRO100\WIN2K\e100bnt5.inf %dest%\PRO100\WIN2K
  145. copy /v ..\PRO100\WIN2K\e100bnt5.sys %dest%\PRO100\WIN2K
  146. copy /v ..\PRO100\WIN2K\e100bmsg.dll %dest%\PRO100\WIN2K
  147. copy /v ..\PRO100\WIN2K\intelnic.dll %dest%\PRO100\WIN2K
  148. copy /v ..\PRO100\WIN2K\PROUnstl.exe %dest%\PRO100\WIN2K
  149. echo.
  150. echo Base driver files have been copied to diskette. 
  151. echo Advanced Networking Features must be installed from
  152. echo a CD-ROM drive, or over the network after a connection
  153. echo to your network file service is established.
  154. echo.
  155. if "%_mdisk_floppy%" == "FALSE" goto end
  156. echo PLEASE LABEL YOUR DISKETTE
  157. echo Intel(R) PRO/100 LAN Adapter Configuration and
  158. echo Microsoft Windows 2000 Drivers (Release # from your CD)
  159. echo.
  160. goto end
  161.  
  162. :XP32_Gig
  163.  
  164. cls
  165. echo.
  166. echo Copying files to %dest%
  167. echo.
  168.  
  169. copy ..\verfile.tic %dest%
  170. if not exist %dest%\verfile.tic goto NOCOPY
  171.  
  172. md %dest%\PRO1000
  173. md %dest%\PRO1000\WINXP32
  174. rem Gigabit specific files (IA 32)
  175. copy /v ..\PRO1000\WINXP32\e1000msg.dll %dest%\PRO1000\WINXP32
  176. copy /v ..\PRO1000\WINXP32\e1000325.cat %dest%\PRO1000\WINXP32
  177. copy /v ..\PRO1000\WINXP32\e1000325.din %dest%\PRO1000\WINXP32
  178. copy /v ..\PRO1000\WINXP32\e1000325.inf %dest%\PRO1000\WINXP32
  179. copy /v ..\PRO1000\WINXP32\e1000325.sys %dest%\PRO1000\WINXP32
  180. copy /v ..\PRO1000\WINXP32\intelnic.dll %dest%\PRO1000\WINXP32
  181. copy /v ..\PRO1000\WINXP32\PROUnstl.exe %dest%\PRO1000\WINXP32
  182. echo.
  183. echo Base driver files have been copied to diskette. 
  184. echo Advanced Networking Features must be installed from
  185. echo a CD-ROM drive, or over the network after a connection
  186. echo to your network file service is established.
  187. echo.
  188. if "%_mdisk_floppy%" == "FALSE" goto end
  189. echo PLEASE LABEL YOUR DISKETTE
  190. echo Intel(R) PRO/1000 LAN Adapter Configuration and
  191. echo Microsoft Windows XP Drivers (Release # from your CD)
  192. echo.
  193. goto end
  194.  
  195. :W2K_Gig
  196.  
  197. cls
  198. echo.
  199. echo Copying files to %dest%
  200. echo.
  201.  
  202. copy ..\verfile.tic %dest%
  203. if not exist %dest%\verfile.tic goto NOCOPY
  204.  
  205. md %dest%\PRO1000
  206. md %dest%\PRO1000\WIN2K
  207. copy /v ..\PRO1000\WIN2K\e1000msg.dll %dest%\PRO1000\WIN2K
  208. copy /v ..\PRO1000\WIN2K\e1000nt5.cat %dest%\PRO1000\WIN2K
  209. copy /v ..\PRO1000\WIN2K\e1000nt5.din %dest%\PRO1000\WIN2K
  210. copy /v ..\PRO1000\WIN2K\e1000nt5.inf %dest%\PRO1000\WIN2K
  211. copy /v ..\PRO1000\WIN2K\intelnic.dll %dest%\PRO1000\WIN2K
  212. copy /v ..\PRO1000\WIN2K\PROUnstl.exe %dest%\PRO1000\WIN2K
  213. copy /v ..\PRO1000\WIN2K\E1000NT5.SYS %dest%\PRO1000\WIN2K
  214. echo.
  215. echo Base driver files have been copied to diskette. 
  216. echo Advanced Networking Features must be installed from
  217. echo a CD-ROM drive, or over the network after a connection
  218. echo to your network file service is established.
  219. echo.
  220. if "%_mdisk_floppy%" == "FALSE" goto end
  221. echo PLEASE LABEL YOUR DISKETTE
  222. echo Intel(R) PRO/1000 LAN Adapter Configuration and
  223. echo Microsoft Windows 2000 Drivers (Release # from your CD)
  224. echo.
  225. goto end
  226.  
  227. :NOCOPY
  228. cls
  229. echo.
  230. echo Can not copy to %dest%.
  231. echo Please check your syntax and try again.
  232. goto usage
  233.  
  234. :usage
  235. echo.
  236. echo Usage rules:
  237. echo MAKEDISK [operating system] [destination (optional)] [silent (optional)]
  238. echo.
  239. echo where [operating system] is the OS family you are creating the diskette for
  240. echo XP32FE   = Microsoft Windows XP 10/100 based solutions
  241. echo XP32GIG  = Microsoft Windows XP Gigabit based solutions
  242. echo W2KFE    = Microsoft Windows 2000 10/100 based solutions
  243. echo W2KGIG   = Microsoft Windows 2000 Gigabit based solutions
  244. echo.
  245. echo and where [destination] is the drive letter and path (such as A:)
  246. echo and where [silent] = run in silent mode (does not pause for user input)
  247. echo Do not add a trailing backslash (\) to the destination path.
  248. echo [destination] (will be A: if none specified) is expected to be formatted media.
  249. echo This utility MUST be run from the \MAKEDISK directory.
  250. echo.
  251. pause 
  252. echo EXAMPLE:
  253.  
  254. echo To create a Windows XP install diskette for 10/100 drivers in A:, from the
  255. echo MAKEDISK directory run:
  256. echo    MAKE2KXP XP32FE 
  257. echo.
  258. pause
  259. goto END
  260.  
  261. :env_bad
  262. set env_chk=
  263. cls
  264. echo ERROR: Your computer does not have sufficient environment space to
  265. echo run this batch file. Please increase the available environment space
  266. echo and run this batch file again. To increase the avaiable environment
  267. echo space, please do the following;
  268. echo.
  269. echo                                  DOS
  270. echo If you are running DOS, edit the CONFIG.SYS file and find the statement
  271. echo COMMAND=C:\(PATH)\COMMAND.COM /e:(number)
  272. echo where (path) is the directory path to your COMMAND.COM file and (number)
  273. echo is a numerical value. Increase the numerical value by at least 32.
  274. echo If this line does not exist, add the following line;
  275. echo COMMAND=C:\COMMAND.COM /E:512
  276. echo Reboot the computer before running this batch file again.
  277. echo.
  278. echo                        Windows 2000 and Windows NT
  279. echo Click Start, then Run, then enter "CMD /E:4096" (without the quotes) to
  280. echo open a DOS window, and then re-run this batch file in that window.
  281. echo.
  282. echo                    Windows 95, Windows 98 and Windows ME
  283. echo Click Start, then Run, then enter "COMMAND /E:4096" (without the quotes) to
  284. echo open a DOS window, and then re-run this batch file in that window.
  285. goto end
  286.  
  287. :END
  288. set dest=
  289. set mode=
  290. set _silent=
  291. set _mdisk_floppy=